#include <iostream>

using namespace std;

struct Foo {
    int val;
public:
    Foo() { cout << "Foo is constructing." << endl; }
    ~Foo() { cout << "~Foo is destructing." << endl; }
};

int main(int argc, char** argv)
{
    Foo f;
    Foo();  // call Foo's construct fucntion and it will indeed construct an object.
    return 0;
}